/*
 * generic.cpp
 *
 *  Created on: 04/gen/2013
 *      Author: Administrator
 */
#include <math.h>
#include "generic.h"

//resto divisione tra double
double rRes(double a, double b){
  //http://www.hwupgrade.it/forum/archive/index.php/t-2184532.html
  double dRes = a/b;
  return (dRes-(long)dRes)*b;
}
